package com.kha.listone.screen.single;

import javax.microedition.lcdui.StringItem;

import com.kha.listone.ListOne;
import com.kha.listone.common.SingleScreen;
import com.kha.listone.locale.LocaleConstants;
import com.kha.listone.locale.LocaleResources;
import com.kha.listone.util.Commands;
import com.kha.listone.util.Globals;
import com.kha.listone.util.Orientation;

public class AboutScreen extends SingleScreen {

	public AboutScreen(ListOne midlet, String title) {
		super(midlet, title);
	}

	protected void initScreen() {
		StringItem content = new StringItem(LocaleResources.getInstance()
				.getString(LocaleConstants.keys.ABOUT_LABEL), LocaleResources
				.getInstance().getString(LocaleConstants.keys.ABOUT_CONTENT));

		super.append(content);

		Orientation.enableOrientations();
		// Option Menu Commands
		if (Globals.HAVE_DROPBOX) {
			this.addCommand(Commands.SYNC);
		}
		this.addCommand(Commands.SETTING);		
		this.addCommand(Commands.BACK);
		// Option Menu Commands
		this.setCommandListener(this);
	}

	public void refresh() {		
		
		super.refresh();
	}

}
